import request from '../utils/request';

// 生成订单
export const addOrder = (data) => {
    return request({
        url: '/addOrder',
        method: 'post',
        data
    });
};

// 查找订单
export const findOrderByUserId = (data) => {
    return request({
        url: '/findOrderByUserId',
        method: 'post',
        data
    });
}

// 修改订单状态（确认收货）
export const updateOrderStatus = (data) => {
    return request({
        url: '/updateOrderStatus',
        method: 'post',
        data: data,
    });
};